import { Constant } from './_utils'
const { ApiPrefix } = Constant

const database = [
  {
    id: '1',
    icon: 'dashboard',
    name: 'Dashboard',
    zh: {
      name: '安全态势'
    },
    'pt-br': {
      name: 'Dashboard'
    },
  },
  {
    id: '1-1',
    menuParentId: '1',
    breadcrumbParentId: '1',
    name: 'Thealarm',
    zh: {
      name: '威胁统计'
    },
    'pt-br': {
      name: 'Detalhes do usuário'
    },
    route: '/dashboard',
  }, {
    id: '1-2',
    menuParentId: '1',
    breadcrumbParentId: '1',
    name: 'Security',
    zh: {
      name: '安全事件'
    },
    'pt-br': {
      name: 'Detalhes do usuário'
    },
    route: '/Security',
  }, {
    id: '1-3',
    menuParentId: '1',
    breadcrumbParentId: '1',
    name: 'Abnormal',
    zh: {
      name: '投递异常'
    },
    'pt-br': {
      name: 'Detalhes do usuário'
    },
    route: '/Abnormal',
  }, {
    id: '1-4',
    menuParentId: '1',
    breadcrumbParentId: '1',
    name: 'delivery',
    zh: {
      name: '投递异常'
    },
    'pt-br': {
      name: 'Detalhes do usuário'
    },
    route: '/delivery',
  },
  {
    id: '2',
    icon: 'HighlightOutlined',
    name: 'strategy',
    zh: {
      name: '安全策略'
    },
    'pt-br': {
      name: 'strategy'
    },
  },
  {
    id: '2-1',
    menuParentId: '2',
    breadcrumbParentId: '2',
    name: 'Thealarm',
    zh: {
      name: '策略管理'
    },
    'pt-br': {
      name: 'Detalhes do usuário'
    },
    route: '/strategy/Policy',
  }, {
    id: '2-1-1',
    menuParentId: '-1',
    breadcrumbParentId: '2-1',
    name: 'Policy/id',
    zh: {
      name: '策略添加'
    },
    'pt-br': {
      name: 'Detalhes do usuário'
    },
    route: '/strategy/Policy/:id',
  },
  {
    id: '2-8',
    menuParentId: '2',
    breadcrumbParentId: '2',
    name: 'Builtin',
    zh: {
      name: '内置策略'
    },
    'pt-br': {
      name: 'Detalhes do usuário'
    },
    route: '/strategy/Builtin',
  }, 
  {
    id: '2-2',
    menuParentId: '2',
    breadcrumbParentId: '2',
    name: 'Thealarm',
    zh: {
      name: '自定义组'
    },
    'pt-br': {
      name: 'Detalhes do usuário'
    },
    route: '/strategy/IPgroup',
  }, {
    id: '2-2-1',
    menuParentId: '-1',
    breadcrumbParentId: '2-2',
    name: '/IPgroup/id',
    zh: {
      name: '自定义组'
    },
    'pt-br': {
      name: 'Detalhes do usuário'
    },
    route: '/strategy/IPgroup/:id',
  },
  {
    id: '2-3',
    menuParentId: '2',
    breadcrumbParentId: '2',
    name: 'Thealarm',
    zh: {
      name: '黑白名单'
    },
    'pt-br': {
      name: 'Detalhes do usuário'
    },
    route: '/strategy/Black',
  }, {
    id: '2-4',
    menuParentId: '2',
    breadcrumbParentId: '2',
    name: 'Thealarm',
    zh: {
      name: '垃圾邮件'
    },
    'pt-br': {
      name: 'Detalhes do usuário'
    },
    route: '/strategy/garbage/infrastructure',
  }, {
    id: '2-4-1',
    menuParentId: '2-4',
    breadcrumbParentId: '2-4',
    name: 'infrastructure',
    zh: {
      name: '基础设置'
    },
    'pt-br': {
      name: 'Detalhes do usuário'
    },
    route: '/strategy/garbage/infrastructure',
  }, {
    id: '2-4-2',
    menuParentId: '2-4',
    breadcrumbParentId: '2-4',
    name: 'Standard',
    zh: {
      name: '标准检测'
    },
    'pt-br': {
      name: 'Detalhes do usuário'
    },
    route: '/strategy/garbage/Standard',
  }, {
    id: '2-4-3',
    menuParentId: '2-4',
    breadcrumbParentId: '2-4',
    name: 'senior',
    zh: {
      name: '高级检测'
    },
    'pt-br': {
      name: 'Detalhes do usuário'
    },
    route: '/strategy/garbage/senior',
  }, {
    id: '2-4-4',
    menuParentId: '2-4',
    breadcrumbParentId: '2-4',
    name: 'Machine',
    zh: {
      name: '机器学习'
    },
    'pt-br': {
      name: 'Detalhes do usuário'
    },
    route: '/strategy/garbage/Machine',
  }, {
    id: '2-5',
    menuParentId: '2',
    breadcrumbParentId: '2',
    name: 'virusmail',
    zh: {
      name: '病毒邮件'
    },
    'pt-br': {
      name: 'Detalhes do usuário'
    },
    route: '/strategy/virusmail',
  }, {
    id: '2-6',
    menuParentId: '2',
    breadcrumbParentId: '2',
    name: 'fishing',
    zh: {
      name: '钓鱼邮件'
    },
    'pt-br': {
      name: 'Detalhes do usuário'
    },
    route: '/strategy/fishing',
  }, {
    id: '2-7',
    menuParentId: '2',
    breadcrumbParentId: '2',
    name: 'Regular',
    zh: {
      name: '内容检测'
    },
    'pt-br': {
      name: 'Detalhes do usuário'
    },
    route: '/strategy/Regular',
  }, {
    id: '2-7-1',
    menuParentId: '-1',
    breadcrumbParentId: '200700',
    name: 'Regular/id',
    zh: {
      name: '内容检测'
    },
    'pt-br': {
      name: 'Detalhes do usuário'
    },
    route: '/strategy/Regular/:id',
  }, {
    id: '2-9',
    menuParentId: '2',
    breadcrumbParentId: '2',
    name: 'isolate',
    zh: {
      name: '链接隔离'
    },
    'pt-br': {
      name: 'Detalhes do usuário'
    },
    route: '/strategy/isolate',
  },  {
    id: '3',
    zh: {
      name: '邮件控制'
    },
    'pt-br': {
      name: 'Posts'
    },
    icon: 'AppstoreOutlined',
  }, {
    id: '300100',
    menuParentId: '3',
    breadcrumbParentId: '3',
    name: 'basis',
    zh: {
      name: '基本设置'
    },
    'pt-br': {
      name: 'Detalhes do usuário'
    },
    route: '/control/basis',
  }, {
    id: '300200',
    menuParentId: '3',
    breadcrumbParentId: '3',
    name: 'Mailrouting',
    zh: {
      name: '邮件路由'
    },
    'pt-br': {
      name: 'Detalhes do usuário'
    },
    route: '/control/Mailrouting',
  }, {
    id: '300200100',
    menuParentId: '-1',
    breadcrumbParentId: '300200',
    name: 'Mailrouting/id',
    zh: {
      name: '邮件路由编辑'
    },
    'pt-br': {
      name: 'Detalhes do usuário'
    },
    route: '/control/Mailrouting/:id',
  }, {
    id: '3-3',
    menuParentId: '3',
    breadcrumbParentId: '3',
    name: 'Mail restriction',
    zh: {
      name: '邮件限制'
    },
    'pt-br': {
      name: 'Detalhes do usuário'
    },
    route: '/control/sizeof',
  }, {
    id: '3-4',
    menuParentId: '3',
    breadcrumbParentId: '3',
    name: 'protection',
    zh: {
      name: '系统防护'
    },
    'pt-br': {
      name: 'Detalhes do usuário'
    },
    route: '/control/protection',
  }, {
    id: '3-5',
    menuParentId: '3',
    breadcrumbParentId: '3',
    name: 'Traffic',
    zh: {
      name: '发件限速'
    },
    'pt-br': {
      name: 'Detalhes do usuário'
    },
    route: '/control/Traffic',
  }, {
    id: '3-5-1',
    menuParentId: '-1',
    breadcrumbParentId: '300500',
    name: 'Traffic/id',
    zh: {
      name: '发件限速编辑'
    },
    'pt-br': {
      name: 'Detalhes do usuário'
    },
    route: '/control/Traffic/:id',
  },
  {
    id: '3-6',
    menuParentId: '3',
    breadcrumbParentId: '3',
    name: 'Separate',
    zh: {
      name: '隔离邮件'
    },
    'pt-br': {
      name: 'Detalhes do usuário'
    },
    route: '/control/Separate',
  }, {
    id: '3-7',
    menuParentId: '3',
    breadcrumbParentId: '3',
    name: 'authentication',
    zh: {
      name: '用户认证'
    },
    'pt-br': {
      name: 'Detalhes do usuário'
    },
    route: '/control/authentication',
  }, {
    id: '3-7-1',
    menuParentId: '-1',
    breadcrumbParentId: '3-7',
    name: 'authentication',
    zh: {
      name: '用户认证编辑'
    },
    'pt-br': {
      name: 'Detalhes do usuário'
    },
    route: '/control/authentication/:id',
  },
  {
    id: '4',
    zh: {
      name: '系统管理'
    },
    'pt-br': {
      name: 'Posts'
    },
    icon: 'ToolOut-icon',
  }, {
    id: '4-1',
    menuParentId: '4',
    breadcrumbParentId: '4',
    name: 'user',
    zh: {
      name: '账号管理'
    },
    'pt-br': {
      name: 'Detalhes do usuário'
    },
    route: '/SystemM/userName',
  }, {
    id: '4-1-1',
    menuParentId: '-1',
    breadcrumbParentId: '400100',
    name: 'user',
    zh: {
      name: '用户详情'
    },
    'pt-br': {
      name: 'Detalhes do usuário'
    },
    route: '/SystemM/userName/:id',
  }, {
    id: '4-3',
    menuParentId: '4',
    breadcrumbParentId: '4',
    name: 'operation',
    zh: {
      name: '通用设置'
    },
    'pt-br': {
      name: 'Detalhes do usuário'
    },
    route: '/SystemM/emil',
  }, {
    id: '4-2',
    menuParentId: '4',
    breadcrumbParentId: '4',
    name: 'operation',
    zh: {
      name: '操作日志'
    },
    'pt-br': {
      name: 'Detalhes do usuário'
    },
    route: '/SystemM/operation',
  }, {
    id: '4-4',
    menuParentId: '4',
    breadcrumbParentId: '4',
    name: 'Configuration',
    zh: {
      name: '配置同步'
    },
    'pt-br': {
      name: 'Detalhes do usuário'
    },
    route: '/SystemM/Configuration',
  }, {
    id: '4-4-1',
    menuParentId: '-1',
    breadcrumbParentId: '400400',
    name: 'Configurationli',
    zh: {
      name: '用户详情'
    },
    'pt-br': {
      name: 'Detalhes do usuário'
    },
    route: '/SystemM/Configuration/:id',
  }, {
    id: '4-5',
    menuParentId: '4',
    breadcrumbParentId: '4',
    name: 'Settings',
    zh: {
      name: '网络设置'
    },
    'pt-br': {
      name: 'Detalhes do usuário'
    },
    route: '/SystemM/Settings',
  }, {
    id: '4-6',
    menuParentId: '4',
    breadcrumbParentId: '4',
    name: 'analysis',
    zh: {
      name: '数据分析'
    },
    'pt-br': {
      name: 'Detalhes do usuário'
    },
    route: '/SystemM/analysis',
  }, {
    id: '4-7',
    menuParentId: '4',
    breadcrumbParentId: '4',
    name: 'systemtime',
    zh: {
      name: '系统时间'
    },
    'pt-br': {
      name: 'Detalhes do usuário'
    },
    route: '/SystemM/systemtime',
  }, {
    id: '4-8',
    menuParentId: '4',
    breadcrumbParentId: '4',
    name: 'Updated',
    zh: {
      name: '实时更新'
    },
    'pt-br': {
      name: 'Detalhes do usuário'
    },
    route: '/SystemM/Updated',
  },
]

module.exports = {
  [`GET ${ApiPrefix}/routes`](req, res) {
    res.status(200).json(database)
  },
}
